<?php
namespace common\models;


use yii\db\ActiveRecord;

class ShoppingCart extends ActiveRecord
{
    public static function tableName()
    {
        return 'shopping_cart';
    }

    public function rules(){
        return [
            [['id','user_id','goods_id','goods_attr_id','goods_num','is_del','status','type','create_time','update_time'],'integer'],

        ];
    }

    public function attributeLabels()
    {
        return [
            'id' => 'id',
            'user_id' => '用户id',
            'goods_id' => '商品id',
            'goods_attr_id' => '商品属性id',
            'goods_num' => '商品数量',
            'is_del' => '0不删除 1 删除',
            'status' => '状态',
            'type' => '类型',
            'create_time' => '创建时间',
            'update_time' => '更新时间',

        ];
    }

}